import request from '@/utils/request'

// 查询列表
export function listEquipclient(query) {
  return request({
    url: '/mqtt/equipclient/list',
    method: 'get',
    params: query
  })
}

// 查询列表
export function getECinfoByEquipmentId(equipmentid) {
  return request({
    url: '/mqtt/equipclient/byequipid/' + equipmentid,
    method: 'get'
  })
}
// 查询详细
export function getEquipclient(id) {
  return request({
    url: '/mqtt/equipclient/' + id,
    method: 'get'
  })
}

// 新增
export function addEquipclient(data) {
  return request({
    url: '/mqtt/equipclient',
    method: 'post',
    data: data
  })
}

// 修改
export function updateEquipclient(data) {
  return request({
    url: '/mqtt/equipclient',
    method: 'put',
    data: data
  })
}

// 删除
export function delEquipclient(id) {
  return request({
    url: '/mqtt/equipclient/' + id,
    method: 'delete'
  })
}
